package com.hsh.maoduo.pojo.other.yd;

import com.hsh.maoduo.anno.Alia;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Objects;

@Data
@NoArgsConstructor
public class YDSend {
    /**
     * 韵达 快递单号
     */
    @Alia("运单号")
    private String expressNum;

    public YDSend(String expressNum) {
        this.expressNum = expressNum;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof YDSend)) return false;
        YDSend ydSend = (YDSend) o;
        return Objects.equals(expressNum, ydSend.expressNum);
    }

    @Override
    public int hashCode() {
        return Objects.hash(expressNum);
    }
}
